c# remove character from string at index

60

c# remove character from string at index -

string s = "This is string";
s = s.Remove(2, 1);
//Output: Ths is string


string s = "This is string";
s = s.Remove(2, 2);
//Output: Th is string

Comments

Submit
0 Comments